package com.wjm.demo.test0.lambda_test;

public class TestMain4 {
    public static void main(String[] args) {
        method(System.out::println);//输出结果为：hello world
    }

    public static void method(TestInterface2 testInterface2) {
        testInterface2.work("hello world");
    }
}
